package org.celery.modules.order.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OrderStatusEnum {
    NORMAL("正常", 1),

    VOID("作废", 2),
    ;
    private String name;
    private int status;

    public static String getName(int status) {
        if (status == NORMAL.getStatus()) {
            return NORMAL.getName();
        } else if (status == VOID.getStatus()) {
            return VOID.getName();
        } else {
            return "";
        }
    }

}
